from v2appconversation import *
from v2appconversationruns import *
from v2appconversationfileupload import *

if __name__ == '__main__':
    query = "图片中有几个人"
    path = "./test.jpg"
    file_ids = [upload_file(path)]

    test = quest_run(query=query, file_ids=file_ids)
    # test = quest_run("你好",quest())
    print(test["answer"])
    # 写入文件txt
    with open("test.txt", "w", encoding="utf-8") as f:
        f.write(test.__str__())
